import Vue from 'vue'
import Router from 'vue-router'
import reg from '@/components/reg/reg'
/* import login from '@/components/login/login' */
import ecIndex from "@/components/ec/index.vue"
import element_statistics from "@/components/ec/element_statistics.vue"
import HelloWorld from "@/components/HelloWorld.vue"
import indexKeDu from "@/components/kedu/index.vue"
import schoolList from "@/components/ck/ck_school_list.vue"
import pirs  from "@/components/pir/index.vue"
Vue.use(Router)

export default new Router({
  routes: [
        {
            path:"/",
            redirect:'/pirs'/*默认根显示*/
        },
        {
            path: '/pirs',
            name: 'pirs',
            component: pirs,
            meta:{title:'cc', keepAlive: true}
        },
        {
            path: '/schoolList',
            name: 'schoolList',
            component: schoolList
        },
        {
            path: '/reg',
            name: 'reg',
            component: reg
        },
        {
            path: '/indexKeDu',
            name: 'indexKeDu',
            component: indexKeDu
        },
      // {
      //     path: '/login',
      //     name: 'login',
      //     component: login
      // },
      {
          path: '/ecIndex',
          name: 'ecIndex',
          component: ecIndex
      },

      {
          path: '/element_statistics',
          name: 'element_statistics',
          component: element_statistics
      },
      {
          path: '/HelloWorld',
          name: 'HelloWorld',
          component: HelloWorld
      },

  ]
})
